/**
 * 
 */
package com.aceitunaproject.shared.message.getUnit;

import java.io.Serializable;

import com.aceitunaproject.shared.message.Message;
import com.aceitunaproject.shared.unit.Unit;

/**
 * @author Federico Bergstein
 *
 */
public class GetUnitResponse implements Message, Serializable {

	
	private static final long serialVersionUID = -6668230571038347148L;
	private Unit unit;

	public GetUnitResponse(Unit unit2) {
		unit = unit2;
	}

	/**
	 * @see com.aceitunaproject.shared.message.Message#getMessageID()
	 */
	@Override
	public String getMessageID() {
		return "1";//TODO: the client must implement a way to identify each message

	}

	/**
	 * @see com.aceitunaproject.shared.message.Message#getMessageType()
	 */
	@Override
	public String getMessageType() {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * @param unit the unit to set
	 */
	public void setUnit(Unit unit) {
		this.unit = unit;
	}

	/**
	 * @return the unit
	 */
	public Unit getUnit() {
		return unit;
	}
	
	

}
